package com.googlecode.horncomb.organ;

import javax.persistence.Column;

public interface Membership extends Relation<Group, Person> {

	/**
	 * 成员为组的负责人
	 * @return
	 */
	public boolean isMaster();

	public void setMaster(boolean master);

	/**
	 * 组为成员的默认组织
	 * @return
	 */
	public boolean isBelongTo();

	public void setBelongTo(boolean belongTo);

	/**
	 * @return 成员隶属的组织.
	 */
	public Group getGroup();

	public void setGroup(Group group);

	/**
	 * @return 组织成员.
	 */
	public Person getPerson();

	public void setPerson(Person person);

	/**
	 * @return the order
	 */
	@Column(name = "ORDER_")
	public int getOrder();

	/**
	 * @param order the order to set
	 */
	public void setOrder(int order);
}
